package com.aaa.pro.controller;

import com.aaa.pro.service.StoreDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 类名称：StoreDetailsController
 * 功能描述：
 * 作者:
 * 日期：2020/1/13 下午 08:47
 * 版本号：1.0.0
 */
@RestController
public class StoreDetailsController {

    @Autowired
    private StoreDetailsService service;

    /**
     * 店家详情的各个数据
     * @param shopid
     * @return
     */
    @RequestMapping("storeDetails")
    public Object list(int shopid){
        Map map = new HashMap();
        map.put("facilityList",service.list(shopid));
        map.put("details",service.details(shopid));
        return map;
    }

}
